package com.kim.order.feign.callback;

import com.kim.order.feign.ProductFeignClient;
import com.kim.order.pojo.Product;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignClientCallBack implements ProductFeignClient {
    @Override
    public Product findById(Integer id) {
        Product product = new Product();
        product.setId(-1);
        product.setProductName("熔断:触发降级方法");
        return product;
    }
}
